<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增代理商')" />
    <th:block th:include="include :: datetimepicker-css" />
    <th:block th:include="include :: jasny-bootstrap-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-agentPrice-add">
            <input type="hidden"  th:value="${agentInfo.agentNum}" name="agentNum"/>
            <table class="table table-bordered table-striped table-top" style="text-align: center">
                <thead>
                <tr>
                    <th style="text-align:center;">交易类型</th>
                    <th style="text-align:center;">交易性质</th>
                    <th style="text-align:center;">卡类型</th>
                    <th style="text-align:center;">成长类型</th>
                    <th style="text-align:center;">代理底价</th>
                    <th style="text-align:center;">封顶成本(元/笔)</th>
                    <th style="text-align:center;">附加手续费(元/笔)</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td  rowspan="4">刷卡</td>
                    <td  rowspan="4">标准类</td>
                    <td  rowspan="2">借记卡</td>
                    <td  >成熟期</td>
                    <td  ><input type="text" required class="form-control" min='0' name="s1_shuakaJiejika"   /> </td>
                    <td  ><input type="text" required class="form-control" min='0' name="s1_shuakaJiejikaFd" value='0'  /> </td>
                    <td  ><input type="text" required class="form-control" min='0' name="s1_shuakaJiejikaFj" value='0' /> </td>
                </tr>
                <tr>
                    <td >成长期</td>
                    <td ><input type="text" required class="form-control" min='0' name="s0_shuakaJiejika"    /> </td>
                    <td ><input type="text" required class="form-control" min='0' name="s0_shuakaJiejikaFd" value='0'/></td>
                    <td  ><input type="text" required class="form-control" min='0' name="s0_shuakaJiejikaFj" value='0' /> </td>
                    <td ></td>
                    <td ></td>
                </tr>
                <tr>
                    <td  rowspan="2">贷记卡</td>
                    <td >成熟期</td>
                    <td ><input type="text" required class="form-control" min='0' name="s1_shuakaDaijika"  /> </td>
                    <td ></td>
                    <td  ><input type="text" required class="form-control" min='0' name="s1_shuakaDaijikaFj" value='0' /> </td>
                    <td ></td>
                </tr>
                <tr>
                    <td >成长期</td>
                    <td ><input type="text" required class="form-control" min='0' name="s0_shuakaDaijika"  /> </td>
                    <td ></td>
                    <td  ><input type="text" required class="form-control" min='0' name="s0_shuakaDaijikaFj" value='0' /> </td>
                    <td  ></td>
                    <td  ></td>
                </tr>

                <tr>
                    <td  rowspan="2" colspan="2">云闪付</td>
                    <td  rowspan="2"></td>
                    <td  >成熟期</td>
                    <td  ><input type="text" required class="form-control" min='0' name="yunshanfu1"  /> </td>
                    <td  ></td>
                    <td  ><input type="text" required class="form-control" min='0' name="yunshanfu1Fj" value="0"  /></td>
                </tr>
                <tr>

                    <td  >成长期</td>
                    <td  ><input type="text" required class="form-control" min='0' name="yunshanfu0"  /> </td>
                    <td  ></td>
                    <td  ><input type="text" required class="form-control" min='0' name="yunshanfu0Fj" value="0"  /></td>
                    <td  ></td>
                    <td  ></td>
                </tr>

                <tr>
                    <td  rowspan="2" colspan="2">扫码</td>
                    <td  rowspan="2"></td>
                    <td  >成熟期</td>
                    <td  ><input type="text" required class="form-control" min='0' name="saoma1"  /> </td>
                    <td  ></td>
                    <td  ><input type="text" required class="form-control" min='0' name="saoma1Fj" value="0"  /> </td>
                </tr>
                <tr>
                    <td  >成长期</td>
                    <td  ><input type="text" required class="form-control" min='0' name="saoma0"  /> </td>
                    <td  ></td>
                    <td  ><input type="text" required class="form-control" min='0' name="saoma0Fj" value="0"  /> </td>
                    <td  ></td>
                    <td  ></td>
                </tr>

                <tr>
                    <td  rowspan="2" colspan="2">享惠</td>
                    <td  rowspan="2"></td>
                    <td >成熟期</td>
                    <td ><input type="text" required class="form-control" min='0' name="xianghui1"  /> </td>
                    <td ></td>
                    <td ><input type="text" required class="form-control" min='0' name="xianghui1Fj" value="0"  /> </td>
                </tr>
                <tr>
                    <td >成长期</td>
                    <td ><input type="text" required class="form-control" min='0' name="xianghui0"  /> </td>
                    <td ></td>
                    <td ><input type="text" required class="form-control" min='0' name="xianghui0Fj" value="0"  /> </td>
                    <td ></td>
                    <td ></td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: jasny-bootstrap-js" />
    <script th:inline="javascript">



        var prefix = ctx + "rule/PolicyInfo"
        $("#form-agentInfo-add").validate({
            focusCleanup: true
        });
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/saveAgentPrice", $('#form-agentPrice-add').serialize());
            }
        }

    </script>
</body>
</html>